package com.njupt.sellsec.handler;

import com.njupt.sellsec.domain.SellUser;

/**
 * @Author: XJL
 * @Description:
 * @Date: Create in 17:34 2018/8/2
 * @Modified By:
 **/
public class UserContext {
    private static ThreadLocal<SellUser> userHolder = new ThreadLocal<SellUser>();

    public static SellUser getUser(){
        return userHolder.get();
    }

    public static void setUser(SellUser user){
        userHolder.set(user);
    }
}

